package com.journalshow.backend.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("photo")
public class Photo {
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    @TableField
    private String resourceUrl;

    @TableField
    private Date uploadTime;

    @TableField
    private Date expiryTime;

    @TableField
    private boolean isExpired;

    @TableField
    private int daysExpired;
}
